package Day1Zuoye;

import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

public class Company {
    private String name;
    private String address;
    private String phone;
    private String range;

    public void information(){
        System.out.println("公司名称:"+name+",注册地址:"+address+",电话:"+phone+",经营范围:"+range);
    }

    public void show(){
        List<Yuangong> yuangongs=new ArrayList<>();
        yuangongs.add(0,new Yuangong("张三",20,"男","主管",5000,"1111"));
        yuangongs.add(0,new Yuangong("李四",24,"女","员工",4000,"1112"));
        yuangongs.add(0,new Yuangong("王五",22,"男","经理",6000,"1113"));
        for (Yuangong y:yuangongs){
            System.out.println(y);
        }
    }


    public Company(String name, String address, String phone, String range) {
        this.name = name;
        this.address = address;
        this.phone = phone;
        this.range = range;
    }
}
